package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;

/**
 * OtherFiscalService entity. @author MyEclipse Persistence Tools <b><i>powered
 * by Belev</i></b>
 */
@Entity
@Table(name = "other_fiscal_services")
@GeneratorKey(tableName = "service_requests")
public class OtherFiscalServiceVO extends ServiceRequestVO {

	private static final long serialVersionUID = 5047766487435182625L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "customer_id")
	private CustomerVO customer;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "marketing_service_id")
	private MarketingServiceVO marketingService;

	@Column(name = "notes")
	private String notes;

	@Column(name = "quantity", nullable = false)
	private Integer quantity;

	/** default constructor */
	public OtherFiscalServiceVO() {
		super();
	}

	/** @return the customer */
	public CustomerVO getCustomer() {
		return this.customer;
	}

	/** @return the marketingService */
	public MarketingServiceVO getMarketingService() {
		return this.marketingService;
	}

	/** @return the notes */
	public String getNotes() {
		return this.notes;
	}

	/** @return the quantity */
	public Integer getQuantity() {
		return this.quantity;
	}

	/** @param customer */
	public void setCustomer(CustomerVO customer) {
		this.customer = customer;
	}

	/**
	 * @param marketingService
	 *            the marketingService to set
	 */
	public void setMarketingService(MarketingServiceVO marketingService) {
		this.marketingService = marketingService;
	}

	/**
	 * @param notes
	 *            the notes to set
	 */
	public void setNotes(String notes) {
		this.notes = notes;
	}

	/** @param quantity */
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

}